<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\modules\admin\models\YlPanel */

$this->title = $model->pan_title;
?>
<div class="yl-panel-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('修改', ['update', 'id' => $model->pan_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->pan_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => '确定删除小面板'.$model->pan_title.'?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'pan_id',
            'pan_title',
            'pan_pic_url:url',
            'pan_explain',
            'pan_link',
            'pan_time',
        ],
    ]) ?>

</div>
